import conf_ip from "./conf_ip.js";
import WindowFocusManager from "./focus_theme.js";

/**
 * 类似反向代理的作用，替换关键字为ip
 * @param url
 * @returns {*}
 */
export function transHttpUrl(url) {
    for(let key in conf_ip) {
        url = url.replaceAll(key, conf_ip[key]);
    }
    return url
}

export function init() {
    new WindowFocusManager()
}